package com.wsd.domain;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
@Component
@Scope("prototype")
public class RepaymentRecord {
    private Long recordId;

    private LocalDateTime gmtCreate;

    private LocalDateTime gmtModified;

    private Long loanId;

    private BigDecimal repaymentAmount;

    private LocalDateTime repaymentTime;

    private String status;

    private String isDelete;

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Long getLoanId() {
        return loanId;
    }

    public void setLoanId(Long loanId) {
        this.loanId = loanId;
    }

    public BigDecimal getRepaymentAmount() {
        return repaymentAmount;
    }

    public void setRepaymentAmount(BigDecimal repaymentAmount) {
        this.repaymentAmount = repaymentAmount;
    }

    public LocalDateTime getRepaymentTime() {
        return repaymentTime;
    }

    public void setRepaymentTime(LocalDateTime repaymentTime) {
        this.repaymentTime = repaymentTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete == null ? null : isDelete.trim();
    }

    @Override
    public String toString() {
        return "RepaymentRecord{" +
                "recordId=" + recordId +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", loanId=" + loanId +
                ", repaymentAmount=" + repaymentAmount +
                ", repaymentTime=" + repaymentTime +
                ", status='" + status + '\'' +
                ", isDelete='" + isDelete + '\'' +
                '}';
    }
}